home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_400
/
436_01
/
inlib.bat
< prev
next >
Wrap
DOS Batch File
|
1994-10-07
|
1KB
|
38 lines
::INLIB.BAT
echo off
::Filter out root, shorthand, and (most) invalid path names.
for %%x in (\ . .\ .\\ .. ..\ ..\\) do if "%%x"=="%1" goto :BAD_PATH
if not exist %1nul goto :BAD_PATH
echo Creating inlib.rsp ...
echo -+%1incon & > inlib.rsp
echo -+%1inalpha & >> inlib.rsp
echo -+%1infloat & >> inlib.rsp
echo -+%1inintgr & >> inlib.rsp
echo -+%1intempl & >> inlib.rsp
echo -+%1inutil & >> inlib.rsp
echo -+%1stringz.obj >> inlib.rsp
echo/
echo Copying INCON header files to %1 ...
echo/
echo copy indefs.h %1indefs.h
copy indefs.h %1indefs.h > nul
echo copy indecl.h %1indecl.h
copy indecl.h %1indecl.h > nul
echo copy stringz.h %1stringz.h
copy stringz.h %1stringz.h > nul
echo/
echo Creating %1inlib.h ...
echo #include "%1indefs.h" > %1inlib.h
echo #include "%1indecl.h" >> %1inlib.h
echo #include "%1stringz.h" >> %1inlib.h
echo/
echo Contents of %1inlib.h:
echo/
type %1inlib.h
goto :EXIT
:BAD_PATH
echo Invalid path: %1
echo/
echo Path must be name, ending with '\'
:EXIT